package com.ruoyi.fun.service;

import java.util.List;
import com.ruoyi.fun.domain.EcAnnouncement;

/**
 * 公告Service接口
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public interface IEcAnnouncementService 
{
    /**
     * 查询公告
     * 
     * @param announcementId 公告主键
     * @return 公告
     */
    public EcAnnouncement selectEcAnnouncementByAnnouncementId(Long announcementId);

    /**
     * 查询公告列表
     * 
     * @param ecAnnouncement 公告
     * @return 公告集合
     */
    public List<EcAnnouncement> selectEcAnnouncementList(EcAnnouncement ecAnnouncement);

    /**
     * 新增公告
     * 
     * @param ecAnnouncement 公告
     * @return 结果
     */
    public int insertEcAnnouncement(EcAnnouncement ecAnnouncement);

    /**
     * 修改公告
     * 
     * @param ecAnnouncement 公告
     * @return 结果
     */
    public int updateEcAnnouncement(EcAnnouncement ecAnnouncement);

    /**
     * 批量删除公告
     * 
     * @param announcementIds 需要删除的公告主键集合
     * @return 结果
     */
    public int deleteEcAnnouncementByAnnouncementIds(Long[] announcementIds);

    /**
     * 删除公告信息
     * 
     * @param announcementId 公告主键
     * @return 结果
     */
    public int deleteEcAnnouncementByAnnouncementId(Long announcementId);

    /**
     * 根据announcementId和组织ID查询Announcement
     * 
     * @param announcementId Announcement主键
     * @param orgId 组织ID
     * @return Announcement
     */
    public EcAnnouncement selectEcAnnouncementByAnnouncementIdAndOrgId(Long announcementId, Long orgId);

    /**
     * 根据组织ID查询Announcement列表
     * 
     * @param ecannouncement Announcement
     * @param orgId 组织ID
     * @return Announcement集合
     */
    public List<EcAnnouncement> selectEcAnnouncementListByOrgId(EcAnnouncement ecannouncement, Long orgId);
}
